#ifndef __SCRIPT_KEYWORD_H__
#define __SCRIPT_KEYWORD_H__

#include "script.h"
#include "script_expression.h"
#include "script_include.h"

struct script_keyword_t{
	char *key;
	int (*parse)(const struct script_keyword_t *keyword, struct exp_string_t *exp_str, struct script_t *script);
	//script_c_func keyword_func;
	void (*destroy)(exec_func_t *func);
	exp_func_t keyword_func;
};

struct if_data{
	exp_node_t *exp;
	struct script_code_block_t *block;
};

struct for_data{
	exp_node_t *key;
	exp_node_t *value;
	exp_node_t *src;
	struct script_code_block_t *block;
};

const struct script_keyword_t *find_keyword(char *str);
const struct script_keyword_t *find_keyword_by_func(void *func);

#endif
